﻿ 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;
using IDAL;
using System.Reflection;

namespace DalFactory
{
    public partial class AbstractFactory
    {
      
   
		
	    public static IActionInfoDal CreateActionInfoStaticDal()
        {

            string classFulleName = dalNamePlace + ".ActionInfoStaticDal";


            //object obj = Assembly.Load(ConfigurationManager.AppSettings["DalAssembly"]).CreateInstance(classFulleName, true);
            var obj  = CreateInstance(classFulleName);


            return obj as IActionInfoDal;
        }
		
	    public static IDepartmentDal CreateDepartmentStaticDal()
        {

            string classFulleName = dalNamePlace + ".DepartmentStaticDal";


            //object obj = Assembly.Load(ConfigurationManager.AppSettings["DalAssembly"]).CreateInstance(classFulleName, true);
            var obj  = CreateInstance(classFulleName);


            return obj as IDepartmentDal;
        }
		
	    public static IDepartmentUserMapperDal CreateDepartmentUserMapperStaticDal()
        {

            string classFulleName = dalNamePlace + ".DepartmentUserMapperStaticDal";


            //object obj = Assembly.Load(ConfigurationManager.AppSettings["DalAssembly"]).CreateInstance(classFulleName, true);
            var obj  = CreateInstance(classFulleName);


            return obj as IDepartmentUserMapperDal;
        }
		
	    public static IRoleActionMapperDal CreateRoleActionMapperStaticDal()
        {

            string classFulleName = dalNamePlace + ".RoleActionMapperStaticDal";


            //object obj = Assembly.Load(ConfigurationManager.AppSettings["DalAssembly"]).CreateInstance(classFulleName, true);
            var obj  = CreateInstance(classFulleName);


            return obj as IRoleActionMapperDal;
        }
		
	    public static IRoleInfoDal CreateRoleInfoStaticDal()
        {

            string classFulleName = dalNamePlace + ".RoleInfoStaticDal";


            //object obj = Assembly.Load(ConfigurationManager.AppSettings["DalAssembly"]).CreateInstance(classFulleName, true);
            var obj  = CreateInstance(classFulleName);


            return obj as IRoleInfoDal;
        }
		
	    public static IUserActionMapperDal CreateUserActionMapperStaticDal()
        {

            string classFulleName = dalNamePlace + ".UserActionMapperStaticDal";


            //object obj = Assembly.Load(ConfigurationManager.AppSettings["DalAssembly"]).CreateInstance(classFulleName, true);
            var obj  = CreateInstance(classFulleName);


            return obj as IUserActionMapperDal;
        }
		
	    public static IUserInfoDal CreateUserInfoStaticDal()
        {

            string classFulleName = dalNamePlace + ".UserInfoStaticDal";


            //object obj = Assembly.Load(ConfigurationManager.AppSettings["DalAssembly"]).CreateInstance(classFulleName, true);
            var obj  = CreateInstance(classFulleName);


            return obj as IUserInfoDal;
        }
		
	    public static IUserRoleMapperDal CreateUserRoleMapperStaticDal()
        {

            string classFulleName = dalNamePlace + ".UserRoleMapperStaticDal";


            //object obj = Assembly.Load(ConfigurationManager.AppSettings["DalAssembly"]).CreateInstance(classFulleName, true);
            var obj  = CreateInstance(classFulleName);


            return obj as IUserRoleMapperDal;
        }
	}
	
}